

emcc tests/test_pthread_setname_np.c -o test_pthread_setname_np_demo.js \
  -pthread \
  -s USE_PTHREADS=1 \
  -s PTHREAD_POOL_SIZE=4 \
  -s EXPORTED_FUNCTIONS='["_main"]' \
  -s EXTRA_EXPORTED_RUNTIME_METHODS='["ccall", "cwrap"]'